// 导入 base.less
@import url(./base.less);
// 声明基准值变量
@baseSize: 3.75vw;
@baseColor: #fb7299;

.active {
  color: @baseColor;
}

// 头部模块
.suspension {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 (2 / @baseSize) (10 / @baseSize) rgb(0 0 0 / 20%);
  z-index: 1;

  // 导航栏
  .m-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: (44 / @baseSize);
    padding: 0 (12 / @baseSize) 0 (18 / @baseSize);

    // logo
    .logo {

      i {
        font-size: (28 / @baseSize);
        color: @baseColor;
      }
    }

    // right
    .right {
      display: flex;

      // search
      .search {
        color: #ccc;

        i {
          font-size: (22 / @baseSize);
        }
      }

      // face
      .face {
        width: (24 / @baseSize);
        height: (24 / @baseSize);
        border-radius: 50%;
        overflow: hidden;
        margin: 0 (20 / @baseSize);
      }

      // app-btn
      .app-btn {
        width: (72 / @baseSize);
        height: (24 / @baseSize);
        text-align: center;
        line-height: (24 / @baseSize);
        font-size: (12 / @baseSize);
        color: #fff;
        background-color: @baseColor;
        border-radius: (4 / @baseSize);
      }
    }
  }

  // 频道
  .channel-menu {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: (40 / @baseSize);
    border-bottom: 1px solid #e7e7e7;

    // .tabs
    .tabs {
      flex: 1;
      overflow: hidden;

      .tabs-list {
        display: flex;

        a {
          height: (40 / @baseSize);
          line-height: (40 / @baseSize);
          padding: 0 (16 / @baseSize);
          white-space: nowrap;
          font-size: (14 / @baseSize);
        }

        .line {
          position: absolute;
          left: (16 / @baseSize);
          bottom: 0;
          width: (28 / @baseSize);
          height: (2 / @baseSize);
          background-color: @baseColor;
        }
      }
    }

    // .after
    .after {
      width: (40 / @baseSize);
      height: (40 / @baseSize);
      text-align: center;
      line-height: (40 / @baseSize);
      color: #ccc;

      i {
        font-size: (20 / @baseSize);
      }
    }

  }
}

// 主体模块
.m-home {
  padding: (85 / @baseSize) (5 / @baseSize) 0;

  .video-list {
    display: flex;
    flex-wrap: wrap;

    .video-item {
      width: 50%;
      padding: (8 / @baseSize) (5 / @baseSize);

      .card {
        position: relative;
        height: (97 / @baseSize);

        .count {
          display: flex;
          justify-content: space-between;
          align-items: center;
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          height: (27 / @baseSize);
          padding: 0 (5 / @baseSize);
          font-size: (12 / @baseSize);
          color: #fff;
          background-image: linear-gradient(transparent, rgba(0, 0, 0, .5));
        }
      }

      .title {
        margin-top: (5 / @baseSize);
        font-size: (12 / @baseSize);
      }
    }
  }
}

// 底部模块
.app {
  position: fixed;
  left: 0;
  bottom: (30 / @baseSize);
  width: 100%;
  height: (38 / @baseSize);

  .btn {
    margin: 0 (20 / @baseSize);
    height: (38 / @baseSize);
    border-radius: (19 / @baseSize);
    color: #fff;
    text-align: center;
    line-height: (38 / @baseSize);
    background-color: @baseColor;
    box-shadow: 0 (2 / @baseSize) (10 / @baseSize) rgb(0 0 0 / 20%);
  }
}
